// This is a echo console running on the device UART.
// Connect using default baudrate for this hardware, 8-N-1 with your terminal program.
package main

import (
	"machine"
	"time"
)

// change these to test a different UART or pins if available
var (
	beep = machine.PA8
	led  = machine.PA6
)

func main() {
	beep.Configure(machine.PinConfig{Mode: machine.PinOutput})
	led.Configure(machine.PinConfig{Mode: machine.PinOutput})
	for {
		// beep.High()
		led.High()
		time.Sleep(1000 * time.Millisecond)
		// beep.Low()
		led.Low()
		time.Sleep(1000 * time.Millisecond)
	}
}
